package com.pigs.pigsordersystem.service;

import com.baomidou.mybatisplus.core.conditions.AbstractWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pigs.pigsordersystem.entity.UsersEntity;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 客户 服务类
 * </p>
 *
 * @author Y.yang
 * @since 2020-03-14
 */
public interface IUsersService extends IService<UsersEntity> {
    /**
     * * 分页
     * * 查询全部用户信息
     *
     * @param page
     * @param wrapper
     * @return
     */
    public IPage<UsersEntity> queryUserList(Page page, AbstractWrapper wrapper);

    /**
     * 客户登录才能购买商品
     * @param name
     * @param userPassword
     * @return
     */
    public UsersEntity loginUser(String name, String userPassword);

}
